home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML Instance.sea / XML Instance / Required / extplugin.jar / com / extensibility / plugin / api / URISchemeAdapter.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-07-31  |  2.5 KB  |  98 lines

  1. package com.extensibility.plugin.api;
  2.  
  3. import java.io.IOException;
  4. import java.io.InputStream;
  5. import java.io.OutputStream;
  6. import java.io.Reader;
  7. import java.io.Writer;
  8.  
  9. public abstract class URISchemeAdapter implements URIScheme {
  10.    protected static final URIMetaData simpleMeta = new SimpleMetaData();
  11.    // $FF: synthetic field
  12.    private static Class class$Lcom$extensibility$plugin$api$URIMetaData;
  13.  
  14.    public String computeRelative(URIScheme var1) {
  15.       return this.getFullPath();
  16.    }
  17.  
  18.    public URIScheme toParent() {
  19.       return null;
  20.    }
  21.  
  22.    public URIScheme renameTo(String var1) {
  23.       return null;
  24.    }
  25.  
  26.    public String getUIName() {
  27.       return this.getShortName();
  28.    }
  29.  
  30.    public long getLength() {
  31.       return -1L;
  32.    }
  33.  
  34.    public boolean hasPersistence() {
  35.       return true;
  36.    }
  37.  
  38.    public boolean isEmpty() {
  39.       return false;
  40.    }
  41.  
  42.    public boolean isReadOnly() {
  43.       return true;
  44.    }
  45.  
  46.    public boolean equals(URIScheme var1) {
  47.       return this.compareTo(var1) == 0;
  48.    }
  49.  
  50.    public Object getInterface(Class var1) {
  51.       URIMetaData var2 = null;
  52.       if (var1 == (class$Lcom$extensibility$plugin$api$URIMetaData != null ? class$Lcom$extensibility$plugin$api$URIMetaData : (class$Lcom$extensibility$plugin$api$URIMetaData = class$("com.extensibility.plugin.api.URIMetaData")))) {
  53.          var2 = simpleMeta;
  54.       }
  55.  
  56.       return var2;
  57.    }
  58.  
  59.    public InputStream createInputStream(String var1) throws IOException {
  60.       return this.createInputStream();
  61.    }
  62.  
  63.    public abstract void registerSchemes(URIScheme.Manager var1);
  64.  
  65.    public abstract URIScheme construct(String var1, String var2);
  66.  
  67.    public abstract URIScheme construct(Object var1);
  68.  
  69.    public abstract URIScheme construct(String var1);
  70.  
  71.    public abstract String getScheme();
  72.  
  73.    public abstract InputStream createInputStream() throws IOException;
  74.  
  75.    public abstract Reader createReader() throws IOException;
  76.  
  77.    public abstract Writer createWriter() throws IOException;
  78.  
  79.    public abstract OutputStream createOutputStream() throws IOException;
  80.  
  81.    public abstract boolean exists();
  82.  
  83.    public abstract int compareTo(URIScheme var1);
  84.  
  85.    public abstract String getShortName();
  86.  
  87.    public abstract String getFullPath();
  88.  
  89.    // $FF: synthetic method
  90.    static Class class$(String var0) {
  91.       try {
  92.          return Class.forName(var0);
  93.       } catch (ClassNotFoundException var2) {
  94.          throw new NoClassDefFoundError(((Throwable)var2).getMessage());
  95.       }
  96.    }
  97. }
  98.